using FriendStar.Code;
using FriendStar.Domain.Entity.VBaseData;
using FriendStar.Domain.IRepository.VBaseData;
using FriendStar.Repository.VBaseData;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace FriendStar.Application.VBaseData
{
    public class V_CPK_61_PC_StoCPKAIAOAcco_AYApp
    {
        private IV_CPK_61_PC_StoCPKAIAOAcco_AYRepository service = new V_CPK_61_PC_StoCPKAIAOAcco_AYRepository();

        public List<V_CPK_61_PC_StoCPKAIAOAcco_AYEntity> GetList(Pagination pagination,string keyValue)
        {
            var expression = ExtLinq.True<V_CPK_61_PC_StoCPKAIAOAcco_AYEntity>();
            if (!string.IsNullOrEmpty(keyValue))
            {
                //expression = expression.And(t => t.FAccountDate.Contains(keyValue));
            }
            expression = expression.And(p => p.FInventoryQuantity > 0);
            return service.FindList(expression,pagination).ToList();
        }
    }
}
